<%	
    # Create the helper
  	flex_scaffold_helper = FlexScaffoldHelper.new("#{actions.first.camelcase}")
   
-%>package <%= class_name.downcase.gsub('::','.') %>.ui
{

	import mx.collections.ArrayCollection;
	import mx.managers.PopUpManager;
	import mx.events.CloseEvent;
	import mx.controls.Alert;	
	
	import flash.display.DisplayObject;
	import flash.display.Sprite;
		
	import org.genuflex.control.GenuflexCairngormEvent;
	import org.genuflex.ui.GenuflexManager;
	import org.genuflex.utils.GenuflexCairngormHelper;
		
	import <%= class_name.downcase.gsub('::','.') %>.control.<%= file_name.camelcase %>Controller;
	import <%= class_name.downcase.gsub('::','.') %>.model.<%= file_name.camelcase %>ModelLocator;	
	import <%= class_name.downcase.gsub('::','.') %>.vo.<%= actions.first.camelcase %>VO;

	import components.<%= actions.first.camelcase %>EditWindow;
	
	public class <%= actions.first.camelcase %>Manager extends GenuflexManager
	{
		/* Manager is a singleton */
		private static var manager : <%= actions.first.camelcase %>Manager;	
	    public static function getInstance() : <%= actions.first.camelcase %>Manager {
	    	if ( manager == null ) {
	      		manager = new <%= actions.first.camelcase %>Manager();
	      	}
	
			return manager;
		}
      
		public function <%= actions.first.camelcase %>Manager() {	
			if ( manager != null ) {
				throw new Error( "Only one <%= actions.first.camelcase %>Manager instance should be instantiated" );	
			}

			/* Configure items on the manager that are specific to <%= flex_scaffold_helper.title.pluralize %> */
			model = <%= file_name.camelcase %>ModelLocator.getInstance();
			modelCollectionName = "<%= flex_scaffold_helper.obj_name.pluralize %>";
			className = "<%= actions.first.camelcase %>";
			title = "<%= flex_scaffold_helper.title %>"; 
			eventArgumentsObjectName= "<%= flex_scaffold_helper.obj_name %>";
			editWindowClass = <%= actions.first.camelcase %>EditWindow;
			voClass = <%= actions.first.camelcase %>VO;
						
	    }
	}
}